<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  
  "http://www.w3.org/TR/html4/loose.dtd">  
<html > 
<head><title> Pixel-wise Block-Matching</title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)"> 
<meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)"> 
<!-- html,4,subsubsections+ --> 
<meta name="src" content="CookBook.tex"> 
<meta name="date" content="2012-10-02 23:16:00"> 
<link rel="stylesheet" type="text/css" href="CookBook.css"> 
</head><body 
>
<!--l. 3333--><div class="crosslinks"><p class="noindent">[<a 
href="CookBooksu73.html" >next</a>] [<a 
href="#tailCookBooksu72.html">tail</a>] [<a 
href="CookBookse17.html#CookBooksu72.html" >up</a>] </p></div>
<h4 class="subsectionHead"><span class="titlemark">4.7.1    </span> <a 
 id="x98-4760004.7.1"></a> Pixel-wise Block-Matching</h4>
<!--l. 3334--><p class="noindent" >Performs block-matching to estimate pixel-wise disparities between two images
<h5 class="subsubsectionHead"><a 
 id="x98-4770004.7.1"></a>Detailed description</h5>
<!--l. 3336--><p class="noindent" >This application allows to performs block-matching to estimate pixel-wise disparities between two images.
The application allows to choose the block-matching method to use. It also allows to input masks (related to
the left and right input image) of pixels for which the disparity should be investigated. Additionally,
two criteria can be optionally used to disable disparity investigation for some pixel: a no-data
                                                                            
                                                                            
value, and a threshold on the local variance. This allows to speed-up computation by avoiding to
investigate disparities that will not be reliable anyway. For efficiency reasons, if the optimal metric
values image is desired, it will be concatenated to the output image (which will then have three
bands : horizontal disparity, vertical disparity and metric value). One can split these images
afterward.
<h5 class="subsubsectionHead"><a 
 id="x98-4780004.7.1"></a>Parameters</h5>
<!--l. 3338--><p class="noindent" >This section describes in details the parameters available for this application. Table&#x00A0;<a 
href="#x98-47800138">4.38<!--tex4ht:ref: BlockMatching_param_table --></a>, page&#x00A0;<a 
href="#x98-47800138">447<!--tex4ht:ref: BlockMatching_param_table --></a>
presents a summary of these parameters and the parameters keys to be used in command-line and
programming languages. Application key is <span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-">BlockMatching</span></span></span>. <div class="table">
                                                                            
                                                                            
<!--l. 3339--><p class="noindent" ><a 
 id="x98-47800138"></a><hr class="float"><div class="float" 
>
                                                                            
                                                                            
<div class="center" 
>
<!--l. 3340--><p class="noindent" >
<div class="tabular"> <table id="TBL-38" class="tabular" 
cellspacing="0" cellpadding="0" rules="groups" 
><colgroup id="TBL-38-1g"><col 
id="TBL-38-1"></colgroup><colgroup id="TBL-38-2g"><col 
id="TBL-38-2"></colgroup><colgroup id="TBL-38-3g"><col 
id="TBL-38-3"></colgroup><tr 
class="hline"><td><hr></td><td><hr></td><td><hr></td></tr><tr  
 style="vertical-align:baseline;" id="TBL-38-1-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-1-1"  
class="td11"><!--l. 3344--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Parameter key</span>                                                </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-1-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Parameter type</span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-1-3"  
class="td11"><!--l. 3344--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Parameter description</span>                                    </td>
</tr><tr 
class="hline"><td><hr></td><td><hr></td><td><hr></td></tr><tr  
 style="vertical-align:baseline;" id="TBL-38-2-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-2-1"  
class="td11"><!--l. 3346--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">io</span></span></span>                                 </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-2-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Group              </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-2-3"  
class="td11"><!--l. 3346--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Input and output data</span>                                     </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-3-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-3-1"  
class="td11"><!--l. 3347--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">io.inleft</span></span></span>                          </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-3-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Input image     </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-3-3"  
class="td11"><!--l. 3347--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Left input image</span>                                            </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-4-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-4-1"  
class="td11"><!--l. 3348--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">io.inright</span></span></span>                         </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-4-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Input image     </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-4-3"  
class="td11"><!--l. 3348--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Right input image</span>                                          </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-5-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-5-1"  
class="td11"><!--l. 3349--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">io.out</span></span></span>                             </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-5-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Output image  </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-5-3"  
class="td11"><!--l. 3349--><p class="noindent" ><span 
class="ptmr7t-x-x-90">The output disparity map</span>                              </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-6-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-6-1"  
class="td11"><!--l. 3350--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">io.outmask</span></span></span>                         </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-6-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Output image  </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-6-3"  
class="td11"><!--l. 3350--><p class="noindent" ><span 
class="ptmr7t-x-x-90">The   output   mask   corresponding   to   all</span>
<span 
class="ptmr7t-x-x-90">criterions</span>                                                        </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-7-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-7-1"  
class="td11"><!--l. 3351--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">io.outmetric</span></span></span>                       </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-7-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Boolean           </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-7-3"  
class="td11"><!--l. 3351--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Output optimal metric values as well</span>            </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-8-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-8-1"  
class="td11"><!--l. 3352--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">mask</span></span></span>                               </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-8-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Group              </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-8-3"  
class="td11"><!--l. 3352--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Image masking parameters</span>                            </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-9-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-9-1"  
class="td11"><!--l. 3353--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">mask.inleft</span></span></span>                        </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-9-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Input image     </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-9-3"  
class="td11"><!--l. 3353--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Discard left pixels from mask image</span>            </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-10-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-10-1"  
class="td11"><!--l. 3354--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">mask.inright</span></span></span>                       </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-10-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Input image     </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-10-3"  
class="td11"><!--l. 3354--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Discard right pixels from mask image</span>          </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-11-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-11-1"  
class="td11"><!--l. 3355--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">mask.nodata</span></span></span>                        </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-11-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Float                </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-11-3"  
class="td11"><!--l. 3355--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Discard pixels with no-data value</span>                 </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-12-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-12-1"  
class="td11"><!--l. 3356--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">mask.variancet</span></span></span>                     </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-12-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Float                </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-12-3"  
class="td11"><!--l. 3356--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Discard pixels with low local variance</span>         </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-13-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-13-1"  
class="td11"><!--l. 3357--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm</span></span></span>                                 </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-13-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Group              </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-13-3"  
class="td11"><!--l. 3357--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Block matching parameters</span>                           </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-14-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-14-1"  
class="td11"><!--l. 3358--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.metric</span></span></span>                          </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-14-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Choices           </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-14-3"  
class="td11"><!--l. 3358--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Block-matching metric</span>                                  </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-15-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-15-1"  
class="td11"><!--l. 3359--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.metric</span><span 
class="pcrr7tn-x-x-90">&#x00A0;ssd</span></span></span>                      </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-15-2"  
class="td11"><span 
class="ptmri7t-x-x-90">Choice             </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-15-3"  
class="td11"><!--l. 3359--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Sum of Squared Distances</span>                            </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-16-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-16-1"  
class="td11"><!--l. 3360--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.metric</span><span 
class="pcrr7tn-x-x-90">&#x00A0;ncc</span></span></span>                      </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-16-2"  
class="td11"><span 
class="ptmri7t-x-x-90">Choice             </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-16-3"  
class="td11"><!--l. 3360--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Normalized Cross-Correlation</span>                      </td></tr><tr  
 style="vertical-align:baseline;" id="TBL-38-17-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-17-1"  
class="td11"><!--l. 3361--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.metric</span><span 
class="pcrr7tn-x-x-90">&#x00A0;lp</span></span></span> </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-17-2"  
class="td11"><span 
class="ptmri7t-x-x-90">Choice </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-17-3"  
class="td11"><!--l. 3361--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Lp pseudo-norm</span></td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-18-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-18-1"  
class="td11"><!--l. 3362--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.metric.lp.p</span></span></span>                     </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-18-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Float                </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-18-3"  
class="td11"><!--l. 3362--><p class="noindent" ><span 
class="ptmr7t-x-x-90">p value</span>                                                           </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-19-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-19-1"  
class="td11"><!--l. 3363--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.radius</span></span></span>                          </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-19-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Int                    </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-19-3"  
class="td11"><!--l. 3363--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Radius of blocks</span>                                            </td></tr><tr  
 style="vertical-align:baseline;" id="TBL-38-20-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-20-1"  
class="td11"><!--l. 3364--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.minhd</span></span></span> </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-20-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Int </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-20-3"  
class="td11"><!--l. 3364--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Minimum horizontal disparity</span></td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-21-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-21-1"  
class="td11"><!--l. 3365--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.maxhd</span></span></span>                           </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-21-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Int                    </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-21-3"  
class="td11"><!--l. 3365--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Maximum horizontal disparity</span>                      </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-22-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-22-1"  
class="td11"><!--l. 3366--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.minvd</span></span></span>                           </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-22-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Int                    </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-22-3"  
class="td11"><!--l. 3366--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Minimum vertical disparity</span>                           </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-23-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-23-1"  
class="td11"><!--l. 3367--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.maxvd</span></span></span>                           </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-23-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Int                    </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-23-3"  
class="td11"><!--l. 3367--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Maximum vertical disparity</span>                          </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-24-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-24-1"  
class="td11"><!--l. 3368--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.subpixel</span></span></span>                        </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-24-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Choices           </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-24-3"  
class="td11"><!--l. 3368--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Sub-pixel interpolation</span>                                  </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-25-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-25-1"  
class="td11"><!--l. 3369--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.subpixel</span><span 
class="pcrr7tn-x-x-90">&#x00A0;none</span></span></span>                   </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-25-2"  
class="td11"><span 
class="ptmri7t-x-x-90">Choice             </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-25-3"  
class="td11"><!--l. 3369--><p class="noindent" ><span 
class="ptmr7t-x-x-90">None</span>                                                              </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-26-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-26-1"  
class="td11"><!--l. 3370--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.subpixel</span><span 
class="pcrr7tn-x-x-90">&#x00A0;parabolic</span></span></span>              </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-26-2"  
class="td11"><span 
class="ptmri7t-x-x-90">Choice             </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-26-3"  
class="td11"><!--l. 3370--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Parabolic</span>                                                        </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-27-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-27-1"  
class="td11"><!--l. 3371--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.subpixel</span><span 
class="pcrr7tn-x-x-90">&#x00A0;triangular</span></span></span>             </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-27-2"  
class="td11"><span 
class="ptmri7t-x-x-90">Choice             </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-27-3"  
class="td11"><!--l. 3371--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Triangular</span>                                                      </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-28-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-28-1"  
class="td11"><!--l. 3372--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.subpixel</span><span 
class="pcrr7tn-x-x-90">&#x00A0;dichotomy</span></span></span>              </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-28-2"  
class="td11"><span 
class="ptmri7t-x-x-90">Choice             </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-28-3"  
class="td11"><!--l. 3372--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Dichotomy</span>                                                     </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-29-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-29-1"  
class="td11"><!--l. 3373--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.medianfilter</span></span></span>                    </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-29-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Group              </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-29-3"  
class="td11"><!--l. 3373--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Median filtering</span>                                             </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-30-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-30-1"  
class="td11"><!--l. 3374--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.medianfilter.radius</span></span></span>             </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-30-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Int                    </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-30-3"  
class="td11"><!--l. 3374--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Radius</span>                                                            </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-31-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-31-1"  
class="td11"><!--l. 3375--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.medianfilter.incoherence</span></span></span>        </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-31-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Float                </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-31-3"  
class="td11"><!--l. 3375--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Incoherence threshold</span>                                   </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-32-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-32-1"  
class="td11"><!--l. 3376--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.initdisp</span></span></span>                        </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-32-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Choices           </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-32-3"  
class="td11"><!--l. 3376--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Initial disparities</span>                                            </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-33-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-33-1"  
class="td11"><!--l. 3377--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.initdisp</span><span 
class="pcrr7tn-x-x-90">&#x00A0;none</span></span></span>                   </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-33-2"  
class="td11"><span 
class="ptmri7t-x-x-90">Choice             </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-33-3"  
class="td11"><!--l. 3377--><p class="noindent" ><span 
class="ptmr7t-x-x-90">None</span>                                                              </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-34-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-34-1"  
class="td11"><!--l. 3378--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.initdisp</span><span 
class="pcrr7tn-x-x-90">&#x00A0;uniform</span></span></span>                </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-34-2"  
class="td11"><span 
class="ptmri7t-x-x-90">Choice             </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-34-3"  
class="td11"><!--l. 3378--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Uniform initial disparity</span>                                </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-35-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-35-1"  
class="td11"><!--l. 3379--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.initdisp</span><span 
class="pcrr7tn-x-x-90">&#x00A0;maps</span></span></span>                   </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-35-2"  
class="td11"><span 
class="ptmri7t-x-x-90">Choice             </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-35-3"  
class="td11"><!--l. 3379--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Initial disparity maps</span>                                     </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-36-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-36-1"  
class="td11"><!--l. 3380--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.initdisp.uniform.hdisp</span></span></span>          </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-36-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Int                    </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-36-3"  
class="td11"><!--l. 3380--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Horizontal initial disparity</span>                            </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-37-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-37-1"  
class="td11"><!--l. 3381--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.initdisp.uniform.vdisp</span></span></span>          </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-37-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Int                    </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-37-3"  
class="td11"><!--l. 3381--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Vertical initial disparity</span>                                 </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-38-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-38-1"  
class="td11"><!--l. 3382--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.initdisp.uniform.hrad</span></span></span>           </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-38-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Int                    </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-38-3"  
class="td11"><!--l. 3382--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Horizontal exploration radius</span>                        </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-39-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-39-1"  
class="td11"><!--l. 3383--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.initdisp.uniform.vrad</span></span></span>           </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-39-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Int                    </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-39-3"  
class="td11"><!--l. 3383--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Vertical exploration radius</span>                            </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-40-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-40-1"  
class="td11"><!--l. 3384--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.initdisp.maps.hmap</span></span></span>              </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-40-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Input image     </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-40-3"  
class="td11"><!--l. 3384--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Horizontal initial disparity map</span>                    </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-41-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-41-1"  
class="td11"><!--l. 3385--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.initdisp.maps.vmap</span></span></span>              </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-41-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Input image     </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-41-3"  
class="td11"><!--l. 3385--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Vertical initial disparity map</span>                         </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-42-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-42-1"  
class="td11"><!--l. 3386--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.initdisp.maps.hrad</span></span></span>              </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-42-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Int                    </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-42-3"  
class="td11"><!--l. 3386--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Horizontal exploration radius</span>                        </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-43-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-43-1"  
class="td11"><!--l. 3387--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">bm.initdisp.maps.vrad</span></span></span>              </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-43-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Int                    </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-43-3"  
class="td11"><!--l. 3387--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Vertical exploration radius</span>                            </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-38-44-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-44-1"  
class="td11"><!--l. 3388--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">ram</span></span></span>                                </td><td  style="white-space:nowrap; text-align:left;" id="TBL-38-44-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Int                    </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-38-44-3"  
class="td11"><!--l. 3388--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Available RAM (Mb)</span>                                    </td>
</tr><tr 
class="hline"><td><hr></td><td><hr></td><td><hr></td></tr><tr  
 style="vertical-align:baseline;" id="TBL-38-45-"><td  style="white-space:wrap; text-align:left;" id="TBL-38-45-1"  
class="td11">                                   </td></tr></table></div>
</div>
<br /> <div class="caption" 
><span class="id">Table&#x00A0;4.38: </span><span  
class="content">Parameters table for Pixel-wise Block-Matching.</span></div><!--tex4ht:label?: x98-47800138 -->
                                                                            
                                                                            
</div><hr class="endfloat" />
</div>
<!--l. 3394--><p class="noindent" ><span class="paragraphHead"><a 
 id="x98-4790004.7.1"></a><span 
class="ptmb7t-">Input and output data</span></span>
This group of parameters allows to set the input and output images.
     <ul class="itemize1">
     <li class="itemize"><span 
class="ptmb7t-">Left input image:  </span>The left input image (reference)
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Right input image:  </span>The right input (secondary)
     </li>
     <li class="itemize"><span 
class="ptmb7t-">The output disparity map:   </span>An image containing the estimated disparities as well as the
     metric values if the option is used
     </li>
     <li class="itemize"><span 
class="ptmb7t-">The  output  mask  corresponding  to  all  criterions:   </span>A  mask  image  corresponding  to  all
     citerions (see masking parameters). Only required if variance threshold or nodata criterions
     are set.
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Output  optimal  metric  values  as  well:    </span>If  used,  the  output  image  will  have  a  second
     component with metric optimal values
     </li></ul>
<!--l. 3408--><p class="noindent" ><span class="paragraphHead"><a 
 id="x98-4800004.7.1"></a><span 
class="ptmb7t-">Image masking parameters</span></span>
This group of parameters allows to determine the masking parameters to prevent disparities estimation for
some pixels of the left image
     <ul class="itemize1">
     <li class="itemize"><span 
class="ptmb7t-">Discard left pixels from mask image:  </span>This parameter allows to provide a custom mask for
     the left image.Block matching will be only perform on pixels inside the mask.
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Discard right pixels from mask image:   </span>This parameter allows to provide a custom mask
     for the right image.Block matching will be perform only on pixels inside the mask.
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Discard pixels with no-data value:  </span>This parameter allows to discard pixels whose value is
     equal to the user-defined no-data value.
                                                                            
                                                                            
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Discard pixels with low local variance:  </span>This parameter allows to discard pixels whose local
     variance is too small (the size of the neighborhood is given by the radius parameter)
     </li></ul>
<!--l. 3420--><p class="noindent" ><span class="paragraphHead"><a 
 id="x98-4810004.7.1"></a><span 
class="ptmb7t-">Block matching parameters</span></span>
This group of parameters allow to tune the block-matching behaviour
     <ul class="itemize1">
     <li class="itemize"><span 
class="ptmb7t-">Block-matching metric:</span>
     <!--l. 3425--><p class="noindent" >Available choices are:
         <ul class="itemize2">
         <li class="itemize"><span 
class="ptmb7t-">Sum of Squared Distances</span>: Sum of squared distances between pixels value in the metric
         window
         </li>
         <li class="itemize"><span 
class="ptmb7t-">Normalized  Cross-Correlation</span>:  Normalized  Cross-Correlation  between  the  left  and
         right windows
         </li>
         <li class="itemize"><span 
class="ptmb7t-">Lp pseudo-norm</span>: Lp pseudo-norm between the left and right windows
             <ul class="itemize3">
             <li class="itemize"><span 
class="ptmb7t-">p value:  </span>Value of the p parameter in Lp pseudo-norm (must be positive)</li></ul>
         </li></ul>
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Radius of blocks:  </span>The radius (in pixels) of blocks in Block-Matching
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Minimum horizontal disparity:  </span>Minimum horizontal disparity to explore (can be negative)
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Maximum horizontal disparity:  </span>Maximum horizontal disparity to explore (can be
     negative)
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Minimum vertical disparity:  </span>Minimum vertical disparity to explore (can be negative)
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Maximum vertical disparity:  </span>Maximum vertical disparity to explore (can be negative)
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Sub-pixel interpolation:  </span>Estimate disparities with sub-pixel precision
     <!--l. 3446--><p class="noindent" >Available choices are:
                                                                            
                                                                            
         <ul class="itemize2">
         <li class="itemize"><span 
class="ptmb7t-">None</span>: No sub-pixel
         </li>
         <li class="itemize"><span 
class="ptmb7t-">Parabolic</span>: Parabolic fit
         </li>
         <li class="itemize"><span 
class="ptmb7t-">Triangular</span>: Triangular fit
         </li>
         <li class="itemize"><span 
class="ptmb7t-">Dichotomy</span>: Dichotomic search</li></ul>
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Median filtering:  </span>Use a median filter to get a smooth disparity map
         <ul class="itemize2">
         <li class="itemize"><span 
class="ptmb7t-">Radius:  </span>Radius for median filter
         </li>
         <li class="itemize"><span 
class="ptmb7t-">Incoherence threshold:  </span>Incoherence threshold between original and filtered disparity
         </li></ul>
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Initial disparities:</span>
     <!--l. 3463--><p class="noindent" >Available choices are:
         <ul class="itemize2">
         <li class="itemize"><span 
class="ptmb7t-">None</span>: No initial disparity used
         </li>
         <li class="itemize"><span 
class="ptmb7t-">Uniform initial disparity</span>: Use an uniform initial disparity estimate
             <ul class="itemize3">
             <li class="itemize"><span 
class="ptmb7t-">Horizontal  initial  disparity:    </span>Value  of  the  uniform  horizontal  disparity  initial
             estimate (in pixels)
             </li>
             <li class="itemize"><span 
class="ptmb7t-">Vertical initial disparity:   </span>Value of the uniform vertical disparity initial estimate
             (in pixels)
             </li>
             <li class="itemize"><span 
class="ptmb7t-">Horizontal exploration radius:   </span>Horizontal exploration radius around the initial
             disparity estimate (in pixels)
             </li>
             <li class="itemize"><span 
class="ptmb7t-">Vertical exploration radius:  </span>Vertical exploration radius around the initial disparity
             estimate (in pixels)</li></ul>
         </li>
         <li class="itemize"><span 
class="ptmb7t-">Initial disparity maps</span>: Use initial disparity maps
             <ul class="itemize3">
             <li class="itemize"><span 
class="ptmb7t-">Horizontal initial disparity map:  </span>Map of the initial horizontal disparities
                                                                            
                                                                            
             </li>
             <li class="itemize"><span 
class="ptmb7t-">Vertical initial disparity map:  </span>Map of the initial vertical disparities
             </li>
             <li class="itemize"><span 
class="ptmb7t-">Horizontal exploration radius:   </span>Horizontal exploration radius around the initial
             disparity estimate (in pixels)
             </li>
             <li class="itemize"><span 
class="ptmb7t-">Vertical exploration radius:  </span>Vertical exploration radius around the initial disparity
             estimate (in pixels)</li></ul>
         </li></ul>
     </li></ul>
<!--l. 3482--><p class="noindent" ><span class="paragraphHead"><a 
 id="x98-4820004.7.1"></a><span 
class="ptmb7t-">Available RAM (Mb)</span></span>
Available memory for processing (in MB)
<!--l. 3485--><p class="noindent" >
<h5 class="subsubsectionHead"><a 
 id="x98-4830004.7.1"></a>Example</h5>
<!--l. 3486--><p class="noindent" >To run this example in command-line, use the following: <!--l. 3487-->
<div class="lstlisting" id="listing-78"><span class="label"><a 
 id="x98-483001r1"></a></span><span 
class="pcrr7tn-x-x-70">otbcli_BlockMatching</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">-</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">inleft</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">StereoFixed</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">png</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">-</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">inright</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">StereoMoving</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">png</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">-</span><span 
class="pcrr7tn-x-x-70">bm</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">minhd</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">-10</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">-</span><span 
class="pcrr7tn-x-x-70">bm</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">maxhd</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">10</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">-</span><span 
class="pcrr7tn-x-x-70">mask</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">variancet</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">10</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">-</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">out</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">MyDisparity</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">tif</span>
</div>
<!--l. 3490--><p class="noindent" >To run this example from Python, use the following code snippet: <!--l. 3491-->
<div class="lstlisting" id="listing-79"><span class="label"><a 
 id="x98-483002r1"></a></span><span 
class="pcrro7t-x-x-70">#</span><span 
class="pcrro7t-x-x-70">!/</span><span 
class="pcrro7t-x-x-70">usr</span><span 
class="pcrro7t-x-x-70">/</span><span 
class="pcrro7t-x-x-70">bin</span><span 
class="pcrro7t-x-x-70">/</span><span 
class="pcrro7t-x-x-70">python</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483003r2"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483004r3"></a></span><span 
class="pcrro7t-x-x-70">#</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">Import</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">the</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">otb</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">applications</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">package</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483005r4"></a></span><span 
class="pcrb7t-x-x-70">import</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">otbApplication</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483006r5"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483007r6"></a></span><span 
class="pcrro7t-x-x-70">#</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">The</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">following</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">line</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">creates</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">an</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">instance</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">of</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">the</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">BlockMatching</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">application</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483008r7"></a></span><span 
class="pcrr7tn-x-x-70">BlockMatching</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">=</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">otbApplication</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">Registry</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">CreateApplication</span><span 
class="pcrr7tn-x-x-70">(</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">BlockMatching</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">)</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483009r8"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483010r9"></a></span><span 
class="pcrro7t-x-x-70">#</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">The</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">following</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">lines</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">set</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">all</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">the</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">application</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">parameters</span><span 
class="pcrro7t-x-x-70">:</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483011r10"></a></span><span 
class="pcrr7tn-x-x-70">BlockMatching</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">SetParameterString</span><span 
class="pcrr7tn-x-x-70">(</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">inleft</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">,</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">StereoFixed</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">png</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">)</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483012r11"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483013r12"></a></span><span 
class="pcrr7tn-x-x-70">BlockMatching</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">SetParameterString</span><span 
class="pcrr7tn-x-x-70">(</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">inright</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">,</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">StereoMoving</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">png</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">)</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483014r13"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483015r14"></a></span><span 
class="pcrr7tn-x-x-70">BlockMatching</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">SetParameterInt</span><span 
class="pcrr7tn-x-x-70">(</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">bm</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">minhd</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">,</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">-10)</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483016r15"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483017r16"></a></span><span 
class="pcrr7tn-x-x-70">BlockMatching</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">SetParameterInt</span><span 
class="pcrr7tn-x-x-70">(</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">bm</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">maxhd</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">,</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">10)</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483018r17"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483019r18"></a></span><span 
class="pcrr7tn-x-x-70">BlockMatching</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">SetParameterFloat</span><span 
class="pcrr7tn-x-x-70">(</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">mask</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">variancet</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">,</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">10)</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483020r19"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483021r20"></a></span><span 
class="pcrr7tn-x-x-70">BlockMatching</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">SetParameterString</span><span 
class="pcrr7tn-x-x-70">(</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">out</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">,</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">MyDisparity</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">tif</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">)</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483022r21"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483023r22"></a></span><span 
class="pcrro7t-x-x-70">#</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">The</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">following</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">line</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">execute</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">the</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">application</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x98-483024r23"></a></span><span 
class="pcrr7tn-x-x-70">BlockMatching</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">ExecuteAndWriteOutput</span><span 
class="pcrr7tn-x-x-70">()</span>
</div>
<!--l. 3516--><p class="noindent" >
<h5 class="subsubsectionHead"><a 
 id="x98-4840004.7.1"></a>Limitations</h5>
<!--l. 3517--><p class="noindent" >None
<h5 class="subsubsectionHead"><a 
 id="x98-4850004.7.1"></a>Authors</h5>
<!--l. 3519--><p class="noindent" >This application has been written by OTB-Team.
                                                                            
                                                                            
<h5 class="subsubsectionHead"><a 
 id="x98-4860004.7.1"></a>See also</h5>
<!--l. 3521--><p class="noindent" >These additional ressources can be useful for further information:
     <ul class="itemize1">
     <li class="itemize">otbStereoRectificationGridGenerator</li></ul>
<!--l. 3525--><div class="crosslinks"><p class="noindent">[<a 
href="CookBooksu73.html" >next</a>] [<a 
href="CookBooksu72.html" >front</a>] [<a 
href="CookBookse17.html#CookBooksu72.html" >up</a>] </p></div>
<!--l. 3525--><p class="noindent" ><a 
 id="tailCookBooksu72.html"></a>  
 <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-7072990-1"); pageTracker._trackPageview(); } catch(err) {}</script></body></html> 
